// 数据库配置
module.exports = {
    dialect: 'mysql',
    host: process.env.DB_HOST || 'localhost',
    port: process.env.DB_PORT || 3306,
    database: process.env.DB_NAME || 'smart_home1',
    username: process.env.DB_USER || 'root',
    password: process.env.DB_PASS || 'Zlb15979711240.',
    define: {
      timestamps: true,
      underscored: true,
      createdAt: 'created_at',
      updatedAt: 'updated_at'
    }
  };